.index {
  @extend .max_body;
  .model_title {
    font-size: 18px;
  }
  .zp_img {
    border: 1px solid #e6e6e6;
    background: #fff5eb;
    text-align: center;
  }
  .head {
    .photo_wall {
      table {
        width: 100%;
        height: auto;
        td {
          img {
            max-width: 100%;
            height: auto;
          }
        }
      }
    }
  }
  @media screen and (max-width: 768px) {
    .head {
      height: auto;
      margin-bottom: 10px;
    }
  }
}

.create {
  background: url("../images/tree.png") no-repeat center #f2f2f2;
  border: 1px solid #e6e6e6;
  padding: 15px;
  height: auto;
  @extend .clearfix;
  input {
    border: 1px solid;
    line-height: 30px;
    max-width: 90px;
    margin: 0 auto;
    display: block;
    box-shadow: 2px 2px 3px #ccc inset;
    padding-left: 10px;
  }
  .one_step {
    .father {
      /*&:after{
        content: '';
        width: 2rem;
        height: 2px;
        position: absolute;
        right: 6px;
        bottom: 1.2rem;
        background: #7aa38f;
      }*/
      input {
        border-color: #7aa38f;
        position: relative;
      }
    }
    .mother {
      position: relative;
      input {
        border-color: #e57670;
      }
    }
    .me {
      position: relative;
      margin: 20px auto 0 auto;
      width: 50%;
      input {
        border-color: #ff5500;
      }
    }
  }
  button {
    margin: 20px auto 0 auto;;
  }
  .three_step {
    .media {
      .media-right {
        display: table-cell;
        img {
          max-width: 100px;
          max-height: 100px;
        }
      }
      .media-body {
        display: table-cell;
        width: 10000px;
      }
    }
    .col-md-6 {
      a {
        text-align: center;
        display: block;
        border: 1px solid darken(#ff5500, 6%);
        background: #ff5500;
        padding: 5px 0;
        color: #ffffff;
        &:hover {
          @extend .active;
        }
      }
      .active {
        border-color: darken(#ff9900, 6%);
        background: #ff9900;
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .create {
    border: none;
    background-color: #ffffff;
    height: auto;
    .auto_center {
      width: 100%;
    }
  }
}

//推荐
.recommend {
  position: relative;
  overflow: hidden;
  height: 315px;
  padding-right: 0;

  .hot {
    position: absolute;
    color: #ffffff;
    font-size: 18px;
    background: url("../images/hot.png") no-repeat;
    left: 15px;
    top: 0;
    width: 83px;
    height: 84px;
    padding: 18px 0 0 14px;
  }
  .title {
    height: 3em;
    line-height: 3em;
    padding-left: 5px;
    background: rgba(0,0,0,.4);
    position: absolute;
    color: #ffffff;
    width: calc(100% - 15px);
    bottom: 0;
    left: 15px;
  }
}

@media screen and (max-width: 768px) {
  .recommend {
    height: 180px;
    margin-bottom: 15px;
    padding-right: 15px;
    .title {
      width: calc(100% - 30px);
    }
  }
}

//热门记录
.record {
  margin-top: -15px;
  @extend .clearfix;
  .single_record {
    padding-right: 0;
    margin-top: 15px;
    height: 95px;
    position: relative;
    .hot {
      position: absolute;
      left: 14px;
      top: -1px;
      width: 34px;
      height: 34px;
      background: url("../images/hot2.png") no-repeat;
      color: #ffffff;
      z-index: 10001;
      span {
        display: block;
        transform: rotate(-45deg);
        font-size: 10px;
      }
      i {
        color: $theme_color;
      }
    }
    .media {
      border: 1px solid #e6e6e6;
      p.text_oneline {
        line-height: 20px;
      }
      .media-left {
        .pictures {
          width: 95px;
          height: 95px;
          img {

          }
        }
        @media (min-width:768px) {
          .pictures {
            margin: -10px;
          }
        }
      }
      .media-body {
        padding-left: 10px;
      }
      &:hover {
        border-color: $theme_color;
        outline: none;
      }
    }

    @media (min-width:768px) {
      .media {
        padding: 10px;
      }
    }

  }
}

//最新记录
.new_record {
  .single_record {
    a {
      &:hover {
        color: #333;
      }
    }
    .record_head {
      height: 50px;
      line-height: 50px;
      border: 1px solid #e6e6e6;
      overflow: hidden;
      @extend .text_oneline;
      img {
        width: 50px;
        height: 50px;
        vertical-align: top;
      }
    }
    .record_text {
      height: auto;
      line-height: 1.5em;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .record_img {
      margin-top: 12px;
      li {
        float: left;
        width: 33.3333%;
        padding: 0 2.5px;
        img {
          display: block;
          width: 100%;
          height: auto;
          // max-height: 158px;
        }
      }
    }
    .record_info {
      line-height: 2.5em;
    }
  }
}

//下划线为虚线的列表
.list_dashed {
  li {
    border-bottom: 1px dashed #e6e6e6;
    @extend .clearfix;
    .title {
      display: inline-block;
      line-height: 3.5em;
      width: calc(100% - 68px);
      float: left;
      @extend .text_oneline;
      a {
        &:hover {
          color: $theme_color;
        }
      }
    }
    span.date {
      display: inline-block;
      width: 68px;
      float: right;
      padding-top: 14px;
      .btn_xs {
        padding: 1px 10px;
      }
    }
  }
  .media {
    border-bottom: 1px dashed #e6e6e6;
    padding-bottom: 10px;
    .media-left {
      img {
        width: 100px;
        height: 100px;
      }
    }
    .m-t {
      @include text_moreline(3);
    }
  }
  &.li_list {
    li {
      a.title {
        width: 100%;
      }
    }
  }
}

//百家姓
.family_names {
  ul {
    @extend .clearfix;
    border-collapse: collapse;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }
  li {
    float: left;
    width: 14.2857%;
    a {
      border: 1px solid #e6e6e6;
      display: block;
      text-decoration: none;
      margin: 0 0 -1px -1px;
      position: relative;
      z-index: 0;
      text-align: center;
      line-height: 35px;
      &:hover {
        background: $theme_color;
        color: #ffffff;
      }
    }
  }
}
